@if ($paginator->hasPages())
    <div class="paging">总数：<b>{{$paginator->total()}}</b>&nbsp;&nbsp;
        @if ($paginator->onFirstPage())
            <a>&laquo;</a>
        @else
            <a href="{{$paginator->previousPageUrl()}}">&laquo;</a>
        @endif
        @foreach ($elements as $element)
            @if (is_string($element))
                <a>{{ $element }}</a>
            @endif
            @if (is_array($element))
                @foreach ($element as $page => $url)
                    @if ($page == $paginator->currentPage())
                        <a class="on">{{$page}}</a>
                    @else
                        <a  href="{{$url}}">{{$page}}</a>
                    @endif
                @endforeach
            @endif
        @endforeach
        @if ($paginator->hasMorePages())
            <a href="{{$paginator->nextPageUrl()}}">&raquo;</a>
        @else
            <a>&raquo;</a>
        @endif
        <div class="clear"></div>
    </div>
@endif
